package com.sfac.springCloudTest.service;


import com.github.pagehelper.PageInfo;
import org.example.common.vo.Result;
import org.example.common.vo.Search;
import org.example.test.entity.City;

import java.util.List;

/**
 * @author jzq
 * @date 2022/8/18 9:38
 */
public interface CityService {

    Result<City> insertCity(City city);

    Result<City> updateCity(City city);

    Result<Object> deleteCityByCityId(int cityId);

    City getCityByCityId(int cityId);

    City getCityByNames(String cityName,String localCityName);

    List<City> getCitiesByCountryId(int countryId);


    PageInfo<City> getCitiesBySearch(Search search);


}
